package org.dromara.basedata.domain.bo;

import org.dromara.basedata.domain.ProductInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 产品信息维护业务对象 product_info
 *
 * @author Lion Li
 * @date 2025-06-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ProductInfo.class, reverseConvertGenerate = false)
public class ProductInfoBo extends BaseEntity {

    /**
     * 产品唯一标识
     */
    @NotNull(message = "产品唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 产品大类ID
     */
    @NotNull(message = "产品大类ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long productCategoryId;

    /**
     * 产品大类名称
     */
    private String productCategoryName;

    /**
     * 材料名称
     */
    @NotBlank(message = "材料名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String materialName;

    /**
     * 规格型号
     */
    private String specificationModel;

    /**
     * 材质
     */
    private String materialType;

    /**
     * 单位（个、台、件）
     */
    private String unit;

    /**
     * 数量
     */
    private Long quantity;

    /**
     * 单重
     */
    private Long singleWeight;

    /**
     * 总重
     */
    private Long totalWeight;

    /**
     * 结构属性
     */
    private String structuralAttributes;

    /**
     * 制造工艺
     */
    private String manufacturingProcess;

    /**
     * 是否外协或外购
     */
    private Long isOutsourced;

    /**
     * 检验或试验
     */
    private String inspectionOrTesting;

    /**
     * 相关标准
     */
    private String relevantStandards;

    /**
     * 产品图片
     */
    private String productImage;

    /**
     * 创建单位
     */
    private Long createDept;

    /**
     * 创建人
     */
    private Long createBy;

    /**
     * 创建时间
     */
    private Date createTime;


}
